<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="box"></div>
    <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
    </ul>
    <script src="./js/jquery-1.12.4.js"></script>
    <script>
        $(function(){
            // <p> 此时被网页解析了
            //$("#box").html("<p>11111</p>");

            // <p> 没有被解析，p标签是一个文本字符串
            $("#box").text("<p>11111</p>");

            var c1 = $("ul li").html(); // 获取匹配的第一个元素内容
            var c2 = $("ul li").text(); // 获取匹配的所有元素内容

            console.log(c1);
            console.log(c2);

            // document.getElementsByClassName
        })
    </script>
</body>
</html>